package com.example.demo.dao;

import com.example.demo.entity.Perms;
import com.example.demo.entity.Role;
import com.example.demo.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author admin
 * @version 1.0 <br/>
 * <p style="font-family:SimSun;font-weight:bold">时间:<br/>2021/12/1 22:30</p>
 * @description
 */
public interface UserDao {
    void save(User user);
    User findUser(String username);
    User findRolesByUserName(String username);
    List<Perms> findPermsByRoleId(Integer id);
}
